import 'package:flutter_animation/utils/common_utils.dart';
import 'package:flutter_test/flutter_test.dart';
void main(){
  /// 单一测试
  test('check phone valid', (){
    expect(CommonUtils.checkPhoneValid('12687392738'), false);
    expect(CommonUtils.checkPhoneValid(null), false);
    expect(CommonUtils.checkPhoneValid('13580808080'), true);
  });
  ///多个测试
  group('group check', (){
    test('check first phone', (){
      expect(CommonUtils.checkPhoneValid('12687392738'), false);
    });
    test('check second phone', (){
      expect(CommonUtils.checkPhoneValid(null), false);
    });
    test('check third phone', (){
      expect(CommonUtils.checkPhoneValid('13580808080'), true);
    });
  });
}